function createLockValuesFromConf(conf) {
	var grid = [];

	for ( var i = 0; i < conf.length; i++) {
		var value = conf.charAt(i);
		if ('X' == value) {
			grid.push(1);
		} else if (' ' == value) {
			grid.push(0);
		} else if ('O' == value) {
			grid.push(-1);
		} else {
			throw (value + " is not a valid configuration value");
		}
	}

	return grid;
}